<ul class="nav nav-secondary "ng-model="comd">
	<li class="active"><a href="#/competition_new/{{comd}}">基本信息</a></li>
	<li><a href="#/competition_new/{{comd}}/detailadd">新建文本</a></li>
	<li><a href="#/competition_new/{{comd}}/detail">比赛详情</a></li>
	<li><a href="#/competition_new/{{comd}}/person">比赛人员</a></li>
	<li><a href="#/competition_new/{{comd}}/result">比赛结果</a></li>
</ul>
<form class="form-horizontal" role="form" method="post">
	
	<div class="form-group">
	    <label class="col-md-2 control-label">比赛名称：</label>
	    <div class="col-md-2">
			<input type="text"  ng-model="competition.name" class="form-control" placeholder="请填写">
	    </div>
	</div>
	<div class="form-group">
	    <label class="col-md-2 control-label">比赛地点：</label>
	    <div class="col-md-2">
			<input type="text"  ng-model="competition.place" class="form-control" placeholder="请填写">
	    </div>
	</div>	
	<div class="form-group">
	    <label class="col-md-2 control-label">报名费:</label>
	    <div class="col-md-2">
			<input type="text"  ng-model="competition.fee" class="form-control" placeholder="请填写">
	    </div>
	</div>
	<div class="form-group">
	    <label class="col-md-2 control-label">组别：</label>
		<div class="col-md-1" ng-repeat="group in groups">
	        <label class="radio-inline">
	        	<span >{{group.name}}</span>
	        	<i ng-click="delg(group)" ng-model="group.id" class="icon-remove" style="color:red;"></i>
	        </label>
	    </div>    	
	</div>

	<div class="form-group">
	    <label class="col-md-2 control-label">新建组别：</label>
	    <div class="col-md-2">
			<input id="group_input" type="text"  class="form-control" placeholder="请填写">
	    </div>
	    <div class="col-md-1">
			 <button id="group_button" class="btn btn-success" type="button">新建</button>
	    </div>
	</div>
	<div class="form-group">
	    <label class="col-md-2 control-label">奖项：</label>
		<div class="col-md-1" ng-repeat="award in awards">
	        <label class="radio-inline">
	        	<span >{{award.name}}</span>
	        	<i ng-click="dela(award)" ng-model="award.id" class="icon-remove" style="color:red;"></i>
	        </label>
	    </div>  	
	</div>
	<div class="form-group">
	    <label class="col-md-2 control-label">新建奖项：</label>
	    <div class="col-md-2">
			<input id="award_input" type="text"  class="form-control" placeholder="请填写">
	    </div>
	    <div class="col-md-1">
			 <button id="award_button" class="btn btn-success" type="button">新建</button>
	    </div>
	</div>
	<div class="form-group">
	    <label class="col-md-2 control-label">报名截止：</label>
    	<div class="col-md-2">
			<input type="text" ng-model="competition.reg_end_time" class="form-control form-datetime" placeholder="选择或者输入一个日期" readonly>
    	</div> 
	    <label class="col-md-1 control-label">比赛开始:</label>
    	<div class="col-md-2">
			<input type="text" ng-model="competition.start_time" class="form-control form-datetime" placeholder="选择或者输入一个日期" readonly>
    	</div>
	    <label class="col-md-1 control-label">比赛结束:</label>
    	<div class="col-md-2">
			<input type="text" ng-model="competition.end_time" class="form-control form-datetime" placeholder="选择或者输入一个日期" readonly>
    	</div>
	</div>
	<ul class="nav nav-secondary"style="height:38px;margin-left:10px;" >
		<li class="active"><a>住宿信息</a></li>
	</ul>
	<table class=" table datatable" style="width:60%;margin-left:110px;" >
	    <thead>
		    <tr>
		    	<th>序号</th>
		    	<th>住宿标准</th>
		    	<th>合床或单住</th>			    	
		    	<th>费用/天</th>
		    	<th>操作</th>		    	
		    </tr>
	  	</thead>
	  	<tbody>
		    <tr ng-repeat="room in rooms">
		    	<td>{{$index+1}}</td>
		    	<td>{{room.name}}</td>
		    	<td>{{room.is_alone}}</td>
		    	<td>{{room.money}}</td>
		    	<td><button ng-click="delete(room)" class="icon-trash btn " style="color:#d2322d"></button></td>
		    </tr>
	  	</tbody>
	</table>
	<div class="form-group">
	    <label class="col-md-2 control-label">住宿标准：</label>
	    <div class="col-md-2">
			<input type="text" ng-model="addroom.name" class="form-control" placeholder="请填写">	    	     
	    </div>
	    <label class="col-md-2 control-label">床位安排：</label>
	    <div class="col-md-4">
			<label class="radio-inline"><input type="radio" value="0" ng-model="addroom.is_alone">合床</label>
			<label class="radio-inline"><input type="radio" value="1" ng-model="addroom.is_alone">单住</label>	    	     
	    </div>
	</div>

	<div class="form-group">
	    <label class="col-md-2 control-label">费用/天：</label>
	    <div class="col-md-2">
			<input type="text" ng-model="addroom.money" class="form-control" placeholder="请填写">	    	     
	    </div>  
		<button style="width:100px;margin-left:120px;" ng-click="ok(addroom)"class="btn btn-large btn-primary">添加住宿信息</button>
	</div>
	
</form>
<div  class="pull-right">
	<div style="margin-bottom:20px; margin-right:100px;">
		<a href="#/competition_new"><button style="width:100px;"class="btn btn-large btn-primary">取消</button></a>
		<a href=""><button  ng-click="submit(competition)" style="width:180px;"class="btn btn-large btn-primary">提交</button></a>
	</div>
</div>
